<h3>Neuigkeiten</h3>

<div class="news_items">
  <ul style="list-style:none"> 
    <% @news_items.each do |news_item| %>

      <li>
        <h4><%=h news_item.caption %></h4>
        <p><%=h news_item.text %></p>
        <p>
          <%= link_to 'Show', news_item %>
          <%= link_to 'Edit', edit_news_item_path(news_item) %>
          <%= link_to 'Destroy', news_item, :confirm => 'Are you sure?', :method => :delete %>
        </p>
      </li>

    <% end %>
  </ul>
</div>


<%= link_to 'Neuigkeit hinzufügen', new_news_item_path %>